package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface FoodMapper {
    /**
     * 根据商家编号查询所属食品信息
     * @param businessId 商家编号
     * @return food数组
     * @throws Exception
     */
    @Select("select * from food where businessId=#{businessId}")
    public List<Food> listFoodByBusinessIdDao(String businessId);

    @Select("select * from food where foodId=#{foodId}")
    public Food getFoodByIdDao(Integer foodId);
}
